package com.baike.damian;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author:pjm
 */
@Data
@Accessors(chain = true)
public class FmLessonDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "雪花id")
    private Long lessonId;

    @ApiModelProperty(value = "课程名称")
    private String lessonName;

    @ApiModelProperty(value = "课程简介")
    private String lessonIntroduce;

    @ApiModelProperty(value = "课程一级分类")
    private Integer lessonCategories1;

    @ApiModelProperty(value = "课程二级分类")
    private Integer lessonCategories2;

    @ApiModelProperty(value = "课程图片")
    private String lessonImage;

    @ApiModelProperty(value = "发布教师")
    private Integer lessonTeacherId;

    @ApiModelProperty(value = "上传时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date lessonPublishDate;

    @ApiModelProperty(value = "审核状态(0.待审核,1审核通过,2.审核未通过,3.已下架)")
    private Integer lessonStatus;

    @ApiModelProperty(value = "删除(0,未删除,1已删除)")
    private Integer lessonDelete;

    @ApiModelProperty(value = "0.免费,1.收费")
    private Integer lessonFree;

    @ApiModelProperty(value = "收费课程价格")
    private Double lessonPrice;

    @ApiModelProperty(value = "已售量")
    private String lessonCount;

    @ApiModelProperty(value = "课程目标")
    private String lessonGoal;

    @ApiModelProperty(value = "课程标签名称")
    private String lessonLabelName;

    @ApiModelProperty(value = "课程标签id")
    private String lessonLabelIds;

}
